<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>jsp2p: it.saccosilvestri.jsp2p.protocol.BobProtocol Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">jsp2p
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">it.saccosilvestri.jsp2p.protocol.BobProtocol Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="it::saccosilvestri::jsp2p::protocol::BobProtocol" --><!-- doxytag: inherits="it::saccosilvestri::jsp2p::protocol::Protocol" --><div class="dynheader">
Inheritance diagram for it.saccosilvestri.jsp2p.protocol.BobProtocol:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol__inherit__graph.png" border="0" usemap="#it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_inherit__map" alt="Inheritance graph"/></div>
<map name="it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_inherit__map" id="it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_inherit__map">
<area shape="rect" id="node2" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html" title="it.saccosilvestri.jsp2p.protocol.Protocol" alt="" coords="16,5,263,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for it.saccosilvestri.jsp2p.protocol.BobProtocol:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol__coll__graph.png" border="0" usemap="#it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_coll__map" alt="Collaboration graph"/></div>
<map name="it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_coll__map" id="it_8saccosilvestri_8jsp2p_8protocol_8_bob_protocol_coll__map">
<area shape="rect" id="node2" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html" title="it.saccosilvestri.jsp2p.protocol.Protocol" alt="" coords="16,5,263,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol.html#af19d99e7959d7a16d0a452a0f7bc692c">BobProtocol</a> (Socket cs, KeyPair kp, X509Certificate c, PublicKey capk, String <a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#a6dcf1366f63023a80091ab663ecd3060">peerName</a>)  throws IOException </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SecretKeySpec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol.html#af5e630fb51c6acf73adc5cd5a76017a2">protocol</a> ()  throws CertificateException, IOException, 			SocketException, InvalidKeyException, NoSuchAlgorithmException, 			NoSuchProviderException, SignatureException, 			NoSuchPaddingException, IllegalBlockSizeException, 			BadPaddingException, BadNonceException, InvalidKeySpecException </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Protocollo per lo scambio della chiave di sessione.  <a href="#af5e630fb51c6acf73adc5cd5a76017a2"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><dl class="author"><dt><b>Author:</b></dt><dd>Sacco Cosimo &amp; Silvestri Davide </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af19d99e7959d7a16d0a452a0f7bc692c"></a><!-- doxytag: member="it::saccosilvestri::jsp2p::protocol::BobProtocol::BobProtocol" ref="af19d99e7959d7a16d0a452a0f7bc692c" args="(Socket cs, KeyPair kp, X509Certificate c, PublicKey capk, String peerName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">it.saccosilvestri.jsp2p.protocol.BobProtocol.BobProtocol </td>
          <td>(</td>
          <td class="paramtype">Socket&#160;</td>
          <td class="paramname"><em>cs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">KeyPair&#160;</td>
          <td class="paramname"><em>kp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">X509Certificate&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PublicKey&#160;</td>
          <td class="paramname"><em>capk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>peerName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws IOException </td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af5e630fb51c6acf73adc5cd5a76017a2"></a><!-- doxytag: member="it::saccosilvestri::jsp2p::protocol::BobProtocol::protocol" ref="af5e630fb51c6acf73adc5cd5a76017a2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SecretKeySpec it.saccosilvestri.jsp2p.protocol.BobProtocol.protocol </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws CertificateException, IOException, 			SocketException, InvalidKeyException, NoSuchAlgorithmException, 			NoSuchProviderException, SignatureException, 			NoSuchPaddingException, IllegalBlockSizeException, 			BadPaddingException, <a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1exceptions_1_1_bad_nonce_exception.html">BadNonceException</a>, InvalidKeySpecException </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Protocollo per lo scambio della chiave di sessione. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_cgraph.png" border="0" usemap="#classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_cgraph" alt=""/></div>
<map name="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_cgraph" id="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_cgraph">
<area shape="rect" id="node3" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#a6628dda63e060c54636d853d6ddca302" title="Riceve un certificato e ne controlla validita&#39; e scadenza." alt="" coords="376,5,787,32"/><area shape="rect" id="node7" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#a6422be451c4fbb04daf3a9095b602983" title="Invia il certificato del peer." alt="" coords="403,56,759,83"/><area shape="rect" id="node9" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#a29c231a6d7e79cf496e3f7f20cbdcbf3" title="Legge un nonce." alt="" coords="424,107,739,133"/><area shape="rect" id="node13" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#ac851b36e727125969fce606dfc047f23" title="it.saccosilvestri.jsp2p.protocol.Protocol.getPrivate" alt="" coords="427,157,736,184"/><area shape="rect" id="node15" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#aa3b2ceec3724182847671516bdcff638" title="Invia un array di byte." alt="" coords="441,208,721,235"/><area shape="rect" id="node17" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_protocol.html#a3fe429bdbe79c9b734d578071727cdfb" title="Genera la chiave di sessione &quot;mescolando&quot; nonceA e nonceB." alt="" coords="421,259,741,285"/><area shape="rect" id="node5" href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_certificate_utility.html#aab387b79ca2c81278dd91c33fd4419cf" title="Controlla validita&#39; e scandenza del certificato." alt="" coords="835,5,1208,32"/><area shape="rect" id="node11" href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_byte_array_utility.html#a595f511cfd7faf60b35a75c1900a9e2d" title="Converte un array di byte nell&#39;intero corrispondente." alt="" coords="840,107,1203,133"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_icgraph.png" border="0" usemap="#classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_icgraph" alt=""/></div>
<map name="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_icgraph" id="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol_af5e630fb51c6acf73adc5cd5a76017a2_icgraph">
<area shape="rect" id="node3" href="classit_1_1saccosilvestri_1_1jsp2p_1_1securecommunication_1_1_secure_communication.html#a4007043b898d6773ed536da026adea5f" title="Il costruttore inizializza il logger ed esegue la parte di protocollo che gli compete decidendo in ba..." alt="" coords="376,5,923,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/it/saccosilvestri/jsp2p/protocol/<a class="el" href="_bob_protocol_8java.html">BobProtocol.java</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceit.html">it</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri.html">saccosilvestri</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri_1_1jsp2p.html">jsp2p</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri_1_1jsp2p_1_1protocol.html">protocol</a>      </li>
      <li class="navelem"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1protocol_1_1_bob_protocol.html">BobProtocol</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Tue Aug 30 2011 11:01:33 for jsp2p by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
